﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics.Contracts;

namespace LSP.BAD
{
    public class Duck
    {
        public DuckState State {get; private set;}


        public virtual void Fly()
        {
            State = DuckState.Fly;

        }
    }


    public enum DuckState
    { 
        Rest,
        Fly
    }
}
